#include <stdio.h>

int main()
{
    FILE *pf = fopen("smb.conf","r+");
    if(NULL == pf)
        exit(-1);

    char buf[1024];

    FILE * pfbak = fopen("smb.conf.bak","w");
    if(NULL == pfbak)
    {
        fclose(pf);
        exit(-1);
    }
    while(fgets(buf,1024,pf))
    {
        if(*buf == '#' || *buf == "\n" || *buf == " ")
//             || *buf == "\t"
            continue;
        printf("%s",buf);
        fputs(buf,pfbak);
    }
    fclose(pf);
    fclose(pfbak);
    printf("Hello World!\n");
    return 0;
}
